package com.life.xylife.model.account.po;
// default package

import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * BdefWorkerPo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "BDEF_WORKER")
public class BdefWorkerPo implements java.io.Serializable
{

	// Fields
	private Integer workerNo;
	private String enterpriseNo;
	private String workerName;
	private String workerType;
	private String workerAlial;
	private String cardNo;
	private String phone;
	private String pwd;
	private String accountWorkname;
	private String workerAddress;
	private Date rgstDate;
	private String remark;

	// Constructors

	/** default constructor */
	public BdefWorkerPo()
	{
	}

	/** minimal constructor */
	public BdefWorkerPo(String enterpriseNo, String workerName,
			String workerType, String phone, String pwd,
			String accountWorkname, Date rgstDate)
	{
		this.enterpriseNo = enterpriseNo;
		this.workerName = workerName;
		this.workerType = workerType;
		this.phone = phone;
		this.pwd = pwd;
		this.accountWorkname = accountWorkname;
		this.rgstDate = rgstDate;
	}

	/** full constructor */
	public BdefWorkerPo(String enterpriseNo, String workerName,
			String workerType, String workerAlial, String cardNo, String phone,
			String pwd, String accountWorkname, String workerAddress,
			Date rgstDate, String remark)
	{
		this.enterpriseNo = enterpriseNo;
		this.workerName = workerName;
		this.workerType = workerType;
		this.workerAlial = workerAlial;
		this.cardNo = cardNo;
		this.phone = phone;
		this.pwd = pwd;
		this.accountWorkname = accountWorkname;
		this.workerAddress = workerAddress;
		this.rgstDate = rgstDate;
		this.remark = remark;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "WORKER_NO", unique = true, nullable = false, precision = 22, scale = 0)
	public Integer getWorkerNo()
	{
		return this.workerNo;
	}

	public void setWorkerNo(Integer workerNo)
	{
		this.workerNo = workerNo;
	}

	@Column(name = "ENTERPRISE_NO", nullable = false, length = 20)
	public String getEnterpriseNo()
	{
		return this.enterpriseNo;
	}

	public void setEnterpriseNo(String enterpriseNo)
	{
		this.enterpriseNo = enterpriseNo;
	}

	@Column(name = "WORKER_NAME", nullable = false, length = 64)
	public String getWorkerName()
	{
		return this.workerName;
	}

	public void setWorkerName(String workerName)
	{
		this.workerName = workerName;
	}

	@Column(name = "WORKER_TYPE", nullable = false, length = 1)
	public String getWorkerType()
	{
		return this.workerType;
	}

	public void setWorkerType(String workerType)
	{
		this.workerType = workerType;
	}

	@Column(name = "WORKER_ALIAL", length = 64)
	public String getWorkerAlial()
	{
		return this.workerAlial;
	}

	public void setWorkerAlial(String workerAlial)
	{
		this.workerAlial = workerAlial;
	}

	@Column(name = "CARD_NO", length = 32)
	public String getCardNo()
	{
		return this.cardNo;
	}

	public void setCardNo(String cardNo)
	{
		this.cardNo = cardNo;
	}

	@Column(name = "PHONE", nullable = false, length = 32)
	public String getPhone()
	{
		return this.phone;
	}

	public void setPhone(String phone)
	{
		this.phone = phone;
	}

	@Column(name = "PWD", nullable = false, length = 15)
	public String getPwd()
	{
		return this.pwd;
	}

	public void setPwd(String pwd)
	{
		this.pwd = pwd;
	}

	@Column(name = "ACCOUNT_WORKNAME", nullable = false, length = 20)
	public String getAccountWorkname()
	{
		return this.accountWorkname;
	}

	public void setAccountWorkname(String accountWorkname)
	{
		this.accountWorkname = accountWorkname;
	}

	@Column(name = "WORKER_ADDRESS", length = 256)
	public String getWorkerAddress()
	{
		return this.workerAddress;
	}

	public void setWorkerAddress(String workerAddress)
	{
		this.workerAddress = workerAddress;
	}

	@Column(name = "RGST_DATE", nullable = false, length = 7)
	public Date getRgstDate()
	{
		return this.rgstDate;
	}

	public void setRgstDate(Date rgstDate)
	{
		this.rgstDate = rgstDate;
	}

	@Column(name = "REMARK", length = 256)
	public String getRemark()
	{
		return this.remark;
	}

	public void setRemark(String remark)
	{
		this.remark = remark;
	}

}